<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Logout
 *
 * @author antonio
 */
class Logout  extends IAbstractInterface implements IIntfacePagina{
    //put your code here
    
    public function __construct($server, $banco, $login, $senha, $parametros = "") {
        parent::__construct($server, $banco, $login, $senha, $parametros);
        $this->gerarPagina();
    }
    
    public function gerarPagina() {
        
        $con  = new Conexcao($this->server,
                $this->banco,
                $this->login,
                $this->senha);
                
        $login = new Login("","", $con);
        
        $login->logout();
        
        //redireciona pagina
        echo '<script>window.location = "http://'.$_SERVER["HTTP_HOST"].'";</script>';
        
    }   
}

?>
